package com.dayouzi.esaydata.pojo.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserInfoDTO", description="用户信息输入展示对象")
public class UserInfoDTO {

    @ApiModelProperty(value = "主键")
    private Integer id;

    @NotEmpty(message = "机构名称不能为空")
    @ApiModelProperty(value = "机构名称")
    private String userName;

    @NotEmpty(message = "用户账号不能为空")
    @ApiModelProperty(value = "用户账号")
    private String userAccount;

    @NotEmpty(message = "用户密码不能为空")
    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @NotEmpty(message = "机器码不能为空")
    @ApiModelProperty(value = "机器码")
    private String uniqueCode;

    @NotEmpty(message = "到期时间不能为空")
    @ApiModelProperty(value = "到期时间")
    private String expireTime;

    @Min(value = 0, message = "剩余天数不能小于0")
    @Max(value = 999, message = "剩余天数不能大于999")
    @ApiModelProperty(value = "剩余天数")
    private Integer validity;

    @ApiModelProperty(value = "登录状态")
    private Integer loginStatus;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime gmtModified;


}
